package com.zd.kids.DataBean;

/**
 * @ClassName: com.zd.kids.DataBean
 * @Description:
 * @Author: hyy
 * @Date: 2020/6/22
 * @Time: 4:44 PM
 */
public class CountryDataBean {

    /**
     * countryid : 1
     * countryname : Australia
     * countrynameen : Australia
     * countrycode : 61
     * deliveryfee : 6
     * countrysort : 1
     * updatetime : 2018-10-25T06:10:28Z
     * continent : 6
     * currency : AUD
     * currency_def : AUD
     * currency_rate : 1.3893
     * currency_update_time : 2018-12-09T00:09:27Z
     */

    private int countryid;
    private String countryname;
    private String countrynameen;
    private String countrycode;
    private String deliveryfee;
    private int countrysort;
    private String updatetime;
    private String continent;
    private String currency;
    private String currency_def;
    private String currency_rate;
    private String currency_update_time;

    public int getCountryid() {
        return countryid;
    }

    public void setCountryid(int countryid) {
        this.countryid = countryid;
    }

    public String getCountryname() {
        return countryname;
    }

    public void setCountryname(String countryname) {
        this.countryname = countryname;
    }

    public String getCountrynameen() {
        return countrynameen;
    }

    public String getCountryNamePinyin() {
        if (getCountrycode().equals("+86")
                || getCountrycode().equals("+852")
                || getCountrycode().equals("+853")
                || getCountrycode().equals("+886")) {
            return "#";
        }

        return getCountrynameen();
    }

    public void setCountrynameen(String countrynameen) {
        this.countrynameen = countrynameen;
    }

    public String getCountrycode() {
        return "+" + countrycode;
    }

    public void setCountrycode(String countrycode) {
        this.countrycode = countrycode;
    }

    public String getDeliveryfee() {
        return deliveryfee;
    }

    public void setDeliveryfee(String deliveryfee) {
        this.deliveryfee = deliveryfee;
    }

    public int getCountrysort() {
        return countrysort;
    }

    public void setCountrysort(int countrysort) {
        this.countrysort = countrysort;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public String getContinent() {
        return continent;
    }

    public void setContinent(String continent) {
        this.continent = continent;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public String getCurrency_def() {
        return currency_def;
    }

    public void setCurrency_def(String currency_def) {
        this.currency_def = currency_def;
    }

    public String getCurrency_rate() {
        return currency_rate;
    }

    public void setCurrency_rate(String currency_rate) {
        this.currency_rate = currency_rate;
    }

    public String getCurrency_update_time() {
        return currency_update_time;
    }

    public void setCurrency_update_time(String currency_update_time) {
        this.currency_update_time = currency_update_time;
    }
}
